function Udkp_ChannelFrame_OnLoad()
	getglobal("UdkpClassListButton1ButtonName"):SetText(UdkpRaid_Class_Cn["WARRIOR"]);
	getglobal("UdkpClassListButton2ButtonName"):SetText(UdkpRaid_Class_Cn["PALADIN"]);
	getglobal("UdkpClassListButton3ButtonName"):SetText(UdkpRaid_Class_Cn["SHAMAN"]);
	getglobal("UdkpClassListButton4ButtonName"):SetText(UdkpRaid_Class_Cn["HUNTER"]);
	getglobal("UdkpClassListButton5ButtonName"):SetText(UdkpRaid_Class_Cn["ROGUE"]);
	getglobal("UdkpClassListButton6ButtonName"):SetText(UdkpRaid_Class_Cn["DRUID"]);
	getglobal("UdkpClassListButton7ButtonName"):SetText(UdkpRaid_Class_Cn["WARLOCK"]);
	getglobal("UdkpClassListButton8ButtonName"):SetText(UdkpRaid_Class_Cn["MAGE"]);
	getglobal("UdkpClassListButton9ButtonName"):SetText(UdkpRaid_Class_Cn["PRIEST"]);
end

function Udkp_sendAllDkp()
	if(CurrentRaidId==0) then return; end
	--SendChatMessage("------------------------------------",UdkpOptions.UdkpChannelLevel, this.language, nil);
	SendChatMessage(UDKP_MESSAGE_DUNIU,UdkpOptions.UdkpChannelLevel, this.language, nil);
	local totalMembers=getn(TEST_PARTY_STUFF[UdkpRaid_GetCurrentRaid]["Members"]);
	for i=1 ,totalMembers,1 do
		SendChatMessage(TEST_PARTY_STUFF[UdkpRaid_GetCurrentRaid]["Members"][i]["player"]..WHO_DKP_Change_MESSAGE.." "..TEST_PARTY_STUFF[UdkpRaid_GetCurrentRaid]["Members"][i]["dkp"],UdkpOptions.UdkpChannelLevel, this.language, nil);
		--SendChatMessage(TEST_PARTY_STUFF[UdkpRaid_GetCurrentRaid]["Members"][i]["player"]..":"..TEST_PARTY_STUFF[UdkpRaid_GetCurrentRaid]["Members"][i]["dkp"],UdkpOptions.UdkpChannelLevel, this.language, nil);
	end
	
end

function Udkp_sendClassDkp()
	if(CurrentRaidId==0) then return; end
	classmessage="=="..getCurrentTeamName()..UDKP_HEAD_MEMBER_CLASS;
	for j=1,9,1 do
		if(getglobal("UdkpClassListButton"..j.."Check"):GetChecked()) then
			classmessage=classmessage..getglobal("UdkpClassListButton"..j.."ButtonName"):GetText()..",";
		end
	end
	
	SendChatMessage(classmessage..UDKP_MESSAGE_TEAM_DKP.."==("..UDKP_MESSAGE_DUNIU..")",UdkpOptions.UdkpChannelLevel, this.language, nil);
	local totalMembers=getn(TEST_PARTY_STUFF[UdkpRaid_GetCurrentRaid]["Members"]);
	local Message="";
	local isSendClass=false;
	for i=1 ,totalMembers,1 do
		for j=1,9,1 do
			if(getglobal("UdkpClassListButton"..j.."ButtonName"):GetText()==TEST_PARTY_STUFF[UdkpRaid_GetCurrentRaid]["Members"][i]["class"] and getglobal("UdkpClassListButton"..j.."Check"):GetChecked()) then
				
				--Uasit_Debug("addspace"..addspace);
				SendChatMessage(TEST_PARTY_STUFF[UdkpRaid_GetCurrentRaid]["Members"][i]["player"]..":"..(TEST_PARTY_STUFF[UdkpRaid_GetCurrentRaid]["Members"][i]["pdkp"]+TEST_PARTY_STUFF[UdkpRaid_GetCurrentRaid]["Members"][i]["dkp"]),UdkpOptions.UdkpChannelLevel, this.language, nil);
				--SendChatMessage(TEST_PARTY_STUFF[UdkpRaid_GetCurrentRaid]["Members"][i]["player"]..WHO_DKP_MESSAGE.." "..(TEST_PARTY_STUFF[UdkpRaid_GetCurrentRaid]["Members"][i]["pdkp"]+TEST_PARTY_STUFF[UdkpRaid_GetCurrentRaid]["Members"][i]["dkp"]),UdkpOptions.UdkpChannelLevel, this.language, nil);
				break;
			end
		end
	end
	
end

